<!DOCTYPE html>
<html lang="en">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<head>
<title>Search.com - Resultados</title>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0" />
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/layout.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<link type="text/css" href="css/autosuggest_inquisitor.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.4.2.js" ></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/cufon-replace.js"></script>
<script type="text/javascript" src="js/Myriad_Pro_300.font.js"></script>
<script type="text/javascript" src="js/Myriad_Pro_400.font.js"></script>
<script type="text/javascript" src="js/bsn.AutoSuggest_2.1.3.js"></script>
<style type="text/css">
article.pagelist
{
    width: auto;
}
.main
{
    width: auto;
}
</style>
</head>
<body id="page3">
<div class="body2">
<!--header -->
		<header style="padding-bottom: 5px";>
			<div class="wrapper">

				<div align="center" style="padding: 5px"><img src="images/logo.png" />
					<ul id="menu" style="float: left; padding-top:10px;">
						<li id="menu_active"><a style="font-size:13px;" href="/">Inicio</a></li>
						<li><a style="font-size:13px;" href="explorar">Explorar </a></li>
						<li class="bg_none"><a style="font-size:13px;" href="ultimaspublicaciones">&Uacute;ltimas publicaciones</a></li>
					</ul>
				</div>

			</div>
		</header>
</div>
<!--header end-->
<!--content -->
<div class="body3">
    <div class="main" style="width: auto;">
		<section class="content_search">
			<article class="pad pagelabel">
				<h2 class="singlepadding">P&aacute;ginas:</h2>
			</article>
			<article class="pad pagelist">
				<div>
					<ul class="listpages">
                                            <li>
                                                <span class="box1"><a href="search?q=${stats.urlQuery}&amp;page=${(stats.selectedPage - 1) < 1 ? 1 : (stats.selectedPage-1)}">&lt;</a></span>
                                                <span class="box1"><a href="search?q=${stats.urlQuery}&amp;page=${stats.selectedPage}">${stats.selectedPage}</a></span>
                                                <span class="box1"><a href="search?q=${stats.urlQuery}&amp;page=${(stats.selectedPage + 1) <= stats.maxPages ? stats.selectedPage + 1 : stats.maxPages}">&gt;</a></span>
                                            </li>
					</ul>
                </div>
			</article>
		</section>
	</div>
</div>
<div class="main" style="width: auto;">
	<br />
    <c:forEach items="${results}" varStatus="vs">
	<section class="content_search">
		<div class="wrapper">
        	<article class="document">
        		<h2 class="webresult"><a href="/download?id=${results[vs.index].idDocument}" class="nounderline">${vs.index + 1 + (stats.selectedPage - 1) * stats.resultsPerPage}. ${results[vs.index].nombre}</a></h2>
				<p class="pad_bot2 marg_top"><strong>Autor:</strong> ${results[vs.index].autor} - <strong>P&aacute;ginas:</strong> ${results[vs.index].paginas} - <strong>Relevance:</strong> ${results[vs.index].tfidfString} - <strong>Tama&ntilde;o:</strong> ${results[vs.index].longitudString} - <strong>Link:</strong> <a href="/download?id=${results[vs.index].idDocument}" class="link1">${results[vs.index].ruta}</a></p>
				<p class="pad_bot2">${results[vs.index].documentFragment}...</p>
        	</article>
 		</div>
	</section>
    </c:forEach>
</div>
<!--content end-->
<!--footer -->
<div class="body4">
	<div class="main">
		<section class="content_search">
			<article class="pad pagelabel">
				<h2 class="singlepadding">P&aacute;ginas:</h2>
			</article>
			<article class="pad pagelist">
				<div>
					<ul class="listpages">
                                             <li>
                                                <span class="box1"><a href="search?q=${stats.urlQuery}&amp;page=${(stats.selectedPage - 1) < 1 ? 1 : (stats.selectedPage-1)}">&lt;</a></span>
                                                <span class="box1"><a href="search?q=${stats.urlQuery}&amp;page=${stats.selectedPage}">${stats.selectedPage}</a></span>
                                                <span class="box1"><a href="search?q=${stats.urlQuery}&amp;page=${(stats.selectedPage + 1) <= stats.maxPages ? stats.selectedPage + 1 : stats.maxPages}">&gt;</a></span>
                                            </li>
					</ul>
                </div>
			</article>
		</section>
	</div>
</div>
<div class="body5">
	<div class="main" style="width: auto;">
		<footer>&copy; 2011 <a href="http://www.search.com/">Search.com</a>  - U.T.N. F.R.C. <br /><strong>Dise&ntilde;o de Lenguajes de Consulta</strong>
		</footer>
	</div>
</div>
<!--footer end-->
</body>
</html>